package com.codepilot.server.mapper;

import com.codepilot.server.model.entity.Favor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FavorMapper {
    Favor getFavor(Integer userId, Integer problemUid);
    List<Favor> getFavorList(Integer userId);
    Integer insertFavor(Favor favor);
    Integer updateFavor(Favor favor);
    Integer deleteFavor(@Param("id") Integer favorId); // pseudo delete
}
